package com.zxy.ziems.server.device.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 设备类型
 * @author chdzq
 * @create 2023/3/22
 */
@Data
public class DeviceTypeDTO {
    /**
     * 主键
     */
    @NotBlank(message = "设备类型ID不能为空", groups = {Update.class, Select.class})
    private String id;

    /**
     * 主键
     */
    @NotBlank(message = "设备类型编码不能为空", groups = {Add.class, Update.class})
    private String code;

    /**
     * 类型名称
     */
    @NotBlank(message = "设备类型名称不能为空", groups = {Update.class, Add.class})
    private String name;

    /**
     * 排序
     */
    private Integer sort = 0;

    public interface Add{}
    public interface Update{}
    public interface Select {}
}
